//class ArrayPrototype extends Array {
//  hd() {}
//}
//
//let prototype = ArrayPrototype.prototype;
//export { prototype };
import Observe from "./Observe.js";
let prototype = Object.create(Array.prototype);

["push", "unshift", "splice"].forEach((method) => {
  prototype[method] = function (...args) {
    Array.prototype[method].apply(this, args);
    new Observe(this);
  };
});

export { prototype };
